package com.li.designpattern.iterator;

public class Test {
	public static void main(String[] args) {
		NameRepository nr=new NameRepository();
		
		for(Iterator it=nr.getIterator();it.hasNext();){
			String name=it.next();
			System.out.println(name);
		}
	}
}
